﻿using System.Collections.Generic;
using System.Linq;

namespace Birkelund.QueryStrings.Internals
{
    internal static class Extensions
    {
        public static IEnumerable<TokenKeyValue> GetTokensWhichAreNotChecksumToken(this IEnumerable<TokenKeyValue> tokens)
        {
            IEnumerable<TokenKeyValue> tokensThatAreNotChecksumToken = tokens.Where(x => !Common.AreEqual(x.Key, CheckSumKeyToken.Instance.KeyName, false));

            return tokensThatAreNotChecksumToken;
        }
    }
}
